package com.bolt.admin.module.sys.repository;

import com.bolt.admin.module.sys.entity.UserEntity;
import com.bolt.support.spring.jpa.repository.BasicJpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @author 米超
 * 用户管理
 */
@Repository
public interface UserRepository extends BasicJpaRepository<UserEntity, String> {


    @Query("select count(id) from UserEntity where userName=:userName")
    long findCountByUserName(@Param("userName") String userName);
    

}